package com.blueline.acme.search.filter;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class AcmeSolrDispatchFilter implements Filter{
	
	private Log log, log2;

	public AcmeSolrDispatchFilter() {
		log = LogFactory.getLog("com.blueline.acme.search.test1");
		log2 = LogFactory.getLog("com.blueline.acme.search.test2");
	}

	public void init(FilterConfig filterConfig) throws ServletException {
		log.info("AcmeSolrDispatchFilter Test1");
		log2.info("AcmeSolrDispatchFilter Test2");
	}

	public void doFilter(ServletRequest request, ServletResponse response,
			FilterChain chain) throws IOException, ServletException {
		chain.doFilter(request, response);
		
	}

	public void destroy() {
		// TODO Auto-generated method stub
		
	}


}
